home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Panorama
/
Panorama - Disk 28C (1988-04-27)(Pacific North-West Amigas Club)[WB].zip
/
Panorama - Disk 28C (1988-04-27)(Pacific North-West Amigas Club)[WB].adf
/
Ifs
/
ifs.doc
< prev
next >
Wrap
Text File
|
1988-02-09
|
1KB
|
42 lines
IFS Documentation
IFS is the C version of the Basic program described in the January 88
issue of BYTE magazine. IFS reads the standard input for the window
position, window size, number of iterations, xoffset, yoffset, xscale,
yscale, number of transformations and the transformation coefficients.
You may run IFS and type all of this in on the command line. But, it is
much easier to just redirect stdin to a text file. I have provided 4
text files for the IFS codes described in the article. To generate the
IFS for sierpinskis' triangle you would type the following:
ifs <triangle.ifs
Each *.ifs file has the following format:
left top width height
interations
xoffset yoffset xscale yscale
m
a1 b1 c1 d1 e1 f1 p1
a2 b2 c2 d2 e2 f2 p2
a3 b3 c3 d3 e3 f3 p3
.
.
.
am bm cm dm em fm pm
The window specifications left, top, width, height are integers.
The iterations and m are also integers.
The rest of the values are floats and require a decimal point.
The probabilities p1, p2, p3, ..., pm must be in decending order and add
up to 1.
Enjoy,
Jeff Mahannah
CIS 74676,3104